<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">{{haha}}
    <input type="button" v-on:click.shift="num++" value="点我哦,有惊喜哦">
    <input type="button" v-on:mouseover="num--" v-on:click="add" value="点我哦,有惊喜哦">
    <input type="button" @keyup.alt.67="clear" value="有惊喜哦">
    <h1>
        {{name}}真帅,
        有{{num}}辆车,
        {{hello}}
    </h1>
</div>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            name: "宇宙无敌第一帅",
            num: 1,
            hello: '',
            lala:'',
            haha:"二比卵子"
        },
        created(){
            this.hello= "我出生了"
            console.log(this)
        },
        methods: {
            add() {
                this.num++;
                add.once()
            },
            clear(){
                this.num=0
            }
        }
    })
</script>


</body>
</html>